<?php

namespace App\Models\Shop;


trait HasOrders
{
   /**
    * A user may have multiple roles.
    * 用户有很多订单
    * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
    */
   public function orders()
   {
      return $this->hasMany(Order::class, 'user_id');
   }


}